package com.spring.api.web.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.http.HttpRequest;
import org.springframework.web.multipart.MultipartFile;

import com.spring.api.web.model.ApiUser;
import com.spring.security.web.model.User;

public interface UserApiService {
	Map<String, Object> login(String token, String ismobile,String userName,
			String passWord,String valnum,String deviceCategory,HttpServletRequest request)throws Exception;

	Map<String, Object> register(User paramUser, String valnum,String deviceCategory,HttpServletRequest request)throws Exception;

	Map<String, Object> changePwd(String token, String pwd_token,
			String pwd_valnum, String oldpwd, String newpwd,HttpServletRequest request)throws Exception;

	Map<String, Object> sendPwdToken(String token,String type)throws Exception;

	Map<String, Object> sendPhoneToken(String phone,String type)throws Exception;
	
	Map<String, Object> findPhoneToken(String phone)throws Exception;

	Map<String, Object> findPwd(String phone, String val_num, String newpwd,String deviceCategory)throws Exception;

	Map<String, Object> checkUser(String phone)throws Exception;
	
	Map<String, Object> queryUserDetail(String token)throws Exception;
	
	Map<String, Object> updateWxPoint(String token, String wx_point)throws Exception;
	
	Map<String, Object> saveUserDetail(String token,ApiUser paramUser,HttpServletRequest request)throws Exception;
	
	Map<String, Object> updateUserImageSrc(String token,String c_user_id ,MultipartFile file,HttpServletRequest request) throws Exception;
	
	ApiUser selectUserDetail();
	
	List<Map<String,Object>> queryUserImage(List<String> list);

	Map<String, Object> registerByAssist(User user,HttpServletRequest request) throws Exception;

	
	Map<String, Object> registerByInviteCode(User user,String valnum,String inviteCode,String deviceCategory,HttpServletRequest request) throws Exception;


	Map<String, Object> checkPhoneToken(String phone, String valnum,String type);
	
//	public Map<String, Object> sendPhoneValnum(String phone,String type) throws Exception;

}